<?php
/**
 * Created by PhpStorm.
 * User: liyang
 * Date: 2016/9/21
 * Time: 9:44
 */

namespace App\Libs\Tool\Impl;


use Illuminate\Database\Eloquent\Builder;

class QueryResult
{

    private $builder;
    private $param;

    /**
     * 创建请求返回对象
     * QueryResult constructor.
     * @param Builder $builder
     * @param array $param
     */
    public function __construct(Builder $builder, array $param) {
        $this->builder = $builder;
        $this->param = $param;
    }

    public function query() {
        return $this->builder;
    }

    public function param() {
        return $this->param;
    }

}